home *** CD-ROM | disk | FTP | other *** search
- /************************************************************************************************/
- /* */
- /* Program Name: Stiletto */
- /* */
- /* File Name: Utilities.h */
- /* */
- /* © Apple Computer, Inc. 1991-1995 */
- /* All Rights Reserved */
- /* */
- /* Revision History: */
- /* */
- /* Date Who Modification */
- /* */
- /* 1991-06-30 Chris Halim Original version */
- /* 1995-06-26 Jaakko Railo Version 2.0 */
- /* */
- /************************************************************************************************/
-
- /****************************************** DESCRIPTION ******************************************
-
- *************************************************************************************************/
-
- /************************************************************************************************/
- /************************************************************************************************/
-
-
- #ifndef __UTILITIES__
- #define __UTILITIES__
-
- #ifndef __RETRACE__
- #include <Retrace.h>
- #endif
-
- #ifndef __LISTS__
- #include <Lists.h>
- #endif
-
-
-
- #ifndef __DIALOGS__
- #include <Dialogs.h>
- #endif
-
-
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
-
- pascal Boolean AlertUserFilterProc(DialogPtr theDialog, EventRecord * theEvent, short * itemHit);
-
- Boolean IsAlias (Str255 fileName, short vRefNum, long dirID);
- void AlertUser (Str255 pString, short errCode);
- void SetPopupValue (DialogPtr theDialog, short itemNumber, short theValue);
- short GetPopupValue (DialogPtr theDialog, short itemNumber);
- void HiliteItem (DialogPtr theDialog, short itemNumber, short hiliteState);
- void BlinkItem (DialogPtr theDialog, short itemNumber);
- Boolean ToggleCheckBox (DialogPtr theDialog, short itemNumber);
- void SetCheckMark (short menuID, short theItem);
-
-
- pascal void DrawBox (DialogPtr theDialog, short itemNumber);
- pascal void DrawDefault (DialogPtr theDialog, short itemNumber);
-
- void CenterRect (const Rect * bounds, Rect * theRect);
- void SetRectFromResource (Rect * theRect, short resID);
- Boolean OutOfBound (const Rect * theRect, const Rect * bounds);
-
- Boolean ToolFileStillExists (ConstStr255Param toolName);
-
-
- // The following two VBLTask routines are not used by Stiletto
-
- //VBLTask * InstallVBLTask (VBLProcPtr taskFunc, short ticks);
- //void RemoveVBLTask (VBLTask * taskPtr);
-
-
- long GetAppFreeMem (void);
- long GetSysFreeMem (void);
-
- pascal Boolean StandardFilterProc(DialogPtr theDialog, EventRecord * theEvent, short * itemHit);
-
- void SelectPreviousCell (ListHandle theList);
- void SelectNextCell (ListHandle theList);
- void ClearAllSelectedCells (ListHandle theList);
-
- short GetQDVersion ();
- Boolean HasColorQD ();
-
- long GetGestaltResult(OSType gestaltSelector);
- void ZoomWindowInCurrentDevice (WindowPtr theWindow, short maxWidth, short maxHeight,
- short zoomDirection, Boolean front);
-
- char * ConvertToCString (char * s1, const char * s2);
-
- MenuHandle GetPopupMHandle (DialogPtr dialog, short resID);
-
-
- #ifdef __cplusplus
- }
- #endif
-
- #endif